#include <cstdio>
using namespace std;

#define VECTOR_SIZE 10

void swap(int[], int, int);

int main()
{
    int v[VECTOR_SIZE] = {0};
    for (int i = 0; i < VECTOR_SIZE; i++)
        scanf(" %d", v + i);
    
    for (int i = 0; i < VECTOR_SIZE; i++)
        for (int j = 0; j < VECTOR_SIZE - i - 1; j++) 
            if (v[j] > v[j + 1])
                swap(v, j, j + 1);
        
    for (int i = 0; i < VECTOR_SIZE; i++)
        printf("%d\n", v[i]);
    
    return 0;
}

void swap(int v[], int i, int j)
{
    int temp = v[i];
    v[i] = v[j];
    v[j] = temp;
}